package wish

import cook.Dish

class WishItem {

	Dish dish
	int quantity
	
	static belongsTo	= [wish:Wish]	
	
    static mapping = {
    }
    
	static constraints = {
    }
	
	public BigDecimal getCost(){
		return dish.cost*quantity	
	}
	
	public BigDecimal getPrice(){
		return dish.price*quantity
	}
	
	public String toString() {
		return quantity+" x "+dish.toString()
	}
}
